#pragma once
#include <Windows.h>
#include "GameControl.h"
#include "unit.h"

class GameControlMgr
{
private:
	GameControlMgr(void);
	~GameControlMgr(void);

public:
	static GameControlMgr& instance();

	void update();
	void clear();
	void addGameConrol(HWND hwnd, GameControl* ctrl);
	void deleteGameConrol(HWND hwnd);
	void destroyGame(HWND hwnd);
	GameControl* getGameControl(HWND hwnd);


private:
	static GameControlMgr mInstance;
	map<HWND,GameControl*> mCtrlMap;
};
